﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Administrator/SystemManage.master" AutoEventWireup="true" CodeBehind="ManageNewsList.aspx.cs" Inherits="CRMSalesManagement.Manage.FrontPageManagement.ManageNewsList" %>
<%@ Register assembly="DataPage" namespace="DataPageTools" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link href="../../DataPage/css.css" rel="stylesheet" type="text/css" />
 <div style="width:776px;height:auto; overflow:hidden;">
         <div style=" list-style-image:url(/images/AddButton.png);padding-top:30px;margin-left:90px;padding-bottom:2px;">
            <li><asp:HyperLink ID="HyperLink1" runat="server"  Font-Underline="false"
            NavigateUrl="~/Manage/FrontPageManagement/NewsAdd.aspx?type=">添加</asp:HyperLink> 
            </li>
         </div> 
         <div class="GridView" style=" padding-left:80px">
         <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>

         <asp:GridView ID="gvNewsList" runat="server" BorderStyle="Double" CellPadding="4" 
                          GridLines="None" AutoGenerateColumns="False" Font-Size="12px" DataKeyNames="Id" 
                          onselectedindexchanged="Page_Load" Width="666px"
            ForeColor="#333333" onrowdeleting="gvNewsList_RowDeleting" 
                 onrowediting="gvNewsList_RowEditing" >
                          <AlternatingRowStyle BackColor="White" />
                          <Columns>
                              <asp:HyperLinkField HeaderText="标题" DataNavigateUrlFields="Id" ControlStyle-Font-Underline="false" 
                                  DataNavigateUrlFormatString="ContentDetail.aspx?Id={0}" DataTextField="Title" Target="_blank">
                              <ItemStyle BorderStyle="None" BorderWidth="1px" HorizontalAlign="Left" 
                                  Width="300px" Wrap="False" />
                              </asp:HyperLinkField>
                              <asp:BoundField HeaderText="时间" DataField="Date" 
                                  DataFormatString="{0:yyyy-MM-dd}" ItemStyle-HorizontalAlign="Center">
                              <ItemStyle Width="100px"  />
                              </asp:BoundField>
                               <asp:TemplateField>
                                   <ItemTemplate><center>
                                       <asp:LinkButton ID="lbEdit" runat="server" CommandName="Edit"  Font-Underline="False"
                                            Text="修改"></asp:LinkButton></center>
                                   </ItemTemplate>
                              </asp:TemplateField>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate><center>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False"  Font-Underline="False"
                                    CommandName="Delete" Text="删除" OnClientClick="return confirm('你确认要删除吗？')"></asp:LinkButton></center>
                            </ItemTemplate>
                        </asp:TemplateField>
                          </Columns>
                          <EditRowStyle BackColor="#2461BF" />
                          <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                          <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                          <RowStyle BackColor="#EFF3FB" />
                          <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                          <SortedAscendingCellStyle BackColor="#F5F7FB" />
                          <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                          <SortedDescendingCellStyle BackColor="#E9EBEF" />
                          <SortedDescendingHeaderStyle BackColor="#4870BE" />
                      </asp:GridView>
                              </ContentTemplate>
</asp:UpdatePanel>
           </div>
           <div style="text-align:center;padding-top:20px;color:red;font-size:12px">
               <asp:Label ID="lblResult" runat="server"></asp:Label>
         </div>

<div class="DataPage">
    <center>
    <cc1:DataPage ID="DataPage1" runat="server" DIVClassName="yahoo" 
            ShowRecordCount="15">
<PageIndex PageIndexType="TextBox"></PageIndex>
    </cc1:DataPage>
    </center>
    </div>
</div>
</asp:Content>
